package com.yangyu.currency;

public interface StatusCode {

    /**
     * 数据库错误
     */
    int DB_ERROR = 600000;

    /**
     * 参数错误
     */
    int PARAMS_ERROR = 600001;

    interface UserErrorCode {
        /**
         * 账号或密码错误
         */
        int WRONG_ACCOUNT_OR_PASSWORD = 600100;

        /**
         * 邮箱已注册
         */
        int EMAIL_REGISTERED = 600101;

        /**
         * 用户名已存在
         */
        int USERNAME_ALREADY_EXISTS = 600102;

        /**
         * 发送验证码失败
         */
        int SEND_CODE_FAILED = 600103;

        /**
         * 验证码错误
         */
        int CODE_ERROR = 600104;

        /**
         * 验证码已发送
         */
        int CODE_SEND_ERROR = 600105;

        /**
         * 获取用户信息失败
         */
        int GET_USER_INFO_FAILED = 600106;
    }

    interface UploadErrorCode {
        /**
         * 上传图片失败
         */
        int UPLOAD_IMG_ERROR = 600200;

        /**
         * 图片格式失败
         */
        int IMG_SUFFIX_ERROR = 600201;
    }
}
